package com.ryskoo.operation.message.service;

import com.ryskoo.framework.core.service.BasicServiceImpl;
import com.ryskoo.operation.message.domain.MessagePO;
import com.ryskoo.operation.message.repository.IMessageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class MessageServiceImpl extends BasicServiceImpl<MessagePO> implements IMessageService{

    @Autowired
    private IMessageRepository messageRepository;

    @PostConstruct
    public void init(){
        super.setDao(messageRepository);
    }
}
